package com.moyun.model.po.dict;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.moyun.model.common.CommonFieldEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 字典类型表
 * </p>
 *
 * @author yangbx
 * @since 2022-06-18
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_dict")
@ApiModel(value = "SysDict对象", description = "字典类型表")
public class SysDict extends CommonFieldEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("业务代码(标识) 字典类型 lg:sex")
    @TableField("code")
    @NotEmpty(message = "字典类型(标识)不能为空.lg: sex")
    private String code;

    @ApiModelProperty("业务名字(名字) lg: 性别")
    @TableField("name")
    @NotEmpty(message = "字典类型(名字)不能为空.lg: 性别")
    private String name;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("是否删除标记(0:未删除 1:已删除)")
    @TableField("is_delete")
    @TableLogic
    private String isDelete;


}
